package org.jeese.modules.demo.service;

import java.util.List;
import java.util.Map;

import org.jeese.modules.demo.entity.Book;

import com.github.pagehelper.PageInfo;

public interface BookService {
	
	public List<Book> listAll();

	public Map<String, Object> add(Book book);

	public Map<String, Object> edit(Book book);

	public Map<String, Object> delete(Long id);

	public PageInfo<Book> page(Integer pageNo, Integer pageSize);

	public PageInfo<Book> page(Integer pageNo, Integer pageSize, String name);

}
